﻿<%@ Control Language="c#" AutoEventWireup="false" Inherits="Web.Control.WWW.Session.sessionState0" %>
<div class="common">
	<div id="new_body">
		<div id="body_900">
			<div id="body_left"></div>
			<div id="body_main">
				<div class="title">
					<h1><%if (isshow){ %><%=GetText("Confirm Agreement by the Student")%><%}else{ %>The status of the session has changed<%} %></h1>
				</div>
				<div class="Center9001n">
					<div class="Center9001Left">
					
					</div>
					<div class="Center9001Right">
							<div class="center9001content">
								<div class="teach_area">
									<%if(isshow){ %>
									<div>
										<span style="color:#336699; font-size:18px"><%=GetText("TP071")%></span>
									</div>
									<div>
										<div class="floatl" style="width:80px">
											<span class="grey12"><%=GetText("C0115")%></span>
											<div class="teacher_profile">
												<div class="floatl" style="width:60px"><a href="<%=WWWHost %>/<%=sm.SNO %>.htm" title="<%=sm.SNickname %>"><img src="<%=sm.SAvatar==""?"/Images/no_pic.gif":sm.SAvatar %>" width="50" height="50" border="0" /></a></div>
												<div><a href="<%=WWWHost %>/<%=sm.SNO %>.htm"><%=sm.SNickname%></a></div>
												<div class="clear"></div>
											</div>
										</div>
										<div class="floatr" style="width:80px; margin-left:15px">
											<span class="grey12"><%=GetText("C0122")%></span>
											<div class="teacher_profile">
												<div class="floatl" style="width:60px"><a href="<%=WWWHost %>/<%=sm.TNO %>T.htm" title="<%=sm.TNickname %>"><img src="<%=sm.TAvatar==""?"/Images/no_pic.gif":sm.TAvatar %>" width="50" height="50" border="0" /></a></div>
												<div><a href="<%=WWWHost %>/<%=sm.TNO %>T.htm"><%=sm.TNickname%></a></div>
												<div class="clear"></div>
											</div>
										</div>
										<div class="floatr" style="width:80px; margin-left:15px">
											<div class="teacher_profile">
												<div><h2><%if (sm.SessionType == "1")
                       { %><%=sm.CTitle%><%}else{ %><%=GetText("One-on-one tutoring") %>
                                                    <%} %></h2></div>
											</div>
										</div>
										<div class="clear"></div>
									</div>
									<div class="teacher_profile margin20">
										<div style="margin-top:10px; border:1px #eee solid; background-color:#fff; padding:5px">
											<table width="590" border="0" cellspacing="1" cellpadding="5" align="center">
											<%if(sm.SessionType == "1"){ %>
												<tr>
													<td valign="top">Which lesson?</td>
													<td><select id="lid"><asp:Repeater ID="reless" runat="server"><ItemTemplate><option  value="<%#Eval("LID") %>" <%#(long)Eval("LID")==sm.LID?"selected='selected'":"" %>>Lesson <%#Eval("Chapter") %> <%#HttpUtility.HtmlEncode(Eval("Title").ToString())%></option></ItemTemplate></asp:Repeater></select></td>
												</tr>
												<%} %>
												<tr>
												<td valign="top"><%=GetText("Languages") %></td>
												<td> 
                                                   <p> <%=GetText("Language taught:") %> <select id="LanguageLearn"><%=GetLang(tm.TLang1, tm.TLang2, tm.TLang3, tm.TLang4, sm.LanguageLearn)%></select></p>
                                                    <p><%=GetText("Base Language:") %><select id="BaseLanguage"><%=GetLang(tm.MotherTongue, tm.MotherTongue2, tm.MotherTongue3, tm.MotherTongue4, sm.BaseLanguage)%></select></p>                                                </td>
												</tr>
												<tr>
												  <td valign="top"><%=GetText("Tuition Day & Time the student requested") %>
                                                    <p><strong>Day & Time:</strong></p></td>
												  <td valign="top"><select name="select2" id="StartDate">
												    <%=GetTedate(30) %>
												    </select>
                                                    <input name="Input" id="StartTime" value="<%=dt.ToString("HH:mm") %>"/>
                                                  (<%=GetTimezoneText(Timezone)%>)<span name="__V_S" vt="0" elt1="StartTime" reg="(20|21|22|23|[0-1]?\d):[0-5]?\d$" style="color: Red;display:none" class="validMsg"><%=GetText("请输入正确的格式(hh:mm)")%></span></td>
											  </tr>
												<tr>
												  <td valign="top"><strong>Time Length:</strong></td>
												  <td valign="top"><select name="select" id="LongTime">
												    <option value="1" <%=sm.LongTime==1?"selected=\"selected\"":"" %>><%=GetText("0.5 hour") %></option>
                                                    <option value="2" <%=sm.LongTime==2?"selected=\"selected\"":"" %>><%=GetText("1 hour") %></option>
                                                    <option value="3" <%=sm.LongTime==3?"selected=\"selected\"":"" %>><%=GetText("1.5 hour") %></option>
                                                    <option value="4" <%=sm.LongTime==4?"selected=\"selected\"":"" %>><%=GetText("2 hour") %></option>
                                                    <option value="5" <%=sm.LongTime==5?"selected=\"selected\"":"" %>><%=GetText("2.5 hour") %></option>
                                                    <option value="6" <%=sm.LongTime==6?"selected=\"selected\"":"" %>><%=GetText("3 hour") %></option>
                                                    <option value="7" <%=sm.LongTime==7?"selected=\"selected\"":"" %>><%=GetText("3.5 hour") %></option>
                                                    <option value="8" <%=sm.LongTime==8?"selected=\"selected\"":"" %>><%=GetText("4 hour") %></option>
                                                    <option value="9" <%=sm.LongTime==9?"selected=\"selected\"":"" %>><%=GetText("4.5 hour") %></option>
                                                    <option value="10" <%=sm.LongTime==10?"selected=\"selected\"":"" %>><%=GetText("5 hour") %></option>
												    </select>												  </td>
											  </tr>
												<tr>
												<td>Credit Price</td>
												<td><%=sm.Price.ToString("N") %> ITC / hour</td>
												</tr>
												<tr>
												<td>Total Price</td>
												<td>15 ITC</td>
												</tr>
												<tr>
													<td valign="top">Connect Using</td>
													<td><p>
													 <select onchange="IMchange(this)" id="TIMType" ><%=GetIm() %></select><select id="AudioType"><option value="1" <%=sm.AudioType=="1"?"selected=\"selected\"":"" %>><%=GetText("Audio only") %></option><option value="2" <%=sm.AudioType=="2"?"selected=\"selected\"":"" %>><%=GetText("Audio/Video") %></option></select></p>
													<p><%=GetText("Student:") %> <input id="SIM" type="text"  value="<%=IMAccount.Split('\n')[0] %>"/> <span name="__V_S" vt="0" elt1="SIM" reg=".{1,50}" style="color: Red;display:none" class="validMsg"><%=GetText("Input the ID of the instant messenger.")%></span></p>
													<p><%=GetText("Teacher: ") %> <span id="TIM"><%=IMAccount.Split('\n')[1] %></span></p>													</td>
												</tr>
												<tr>
												<td colspan="2">
													<div style="text-align:center; margin:10px 0px 0px 0px">
														<div class="agreement_stu">
															<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
																<tr>
																<td width="30">&nbsp;</td>
																<td><h4><a href="" target="_blank"><%=GetText("Terms of Service") %></a></h4>
																<p><%=GetText("I (student) understand that if the teacher agrees to the terms I have outlined above, I agree for italki to bill my account.") %><br />
																<%=GetText("If I do not have enough credit in my italki account, I will send payment immediately.")%></p>																</td>
																</tr>
																<tr>
																<td colspan="2"><input id="agree" type="checkbox" value=""  />&nbsp;<strong><%=GetText("I agree to all of these terms") %></strong><span style="color: Red;display:none" id="Sagree"><br /><%=GetText("Select the radio box.") %></span></td>
																</tr>
															</table>
														</div>
													</div>												</td>
												</tr>
											</table>
										</div>
									</div>
									<h3>Message</h3>
									<p><textarea id="txtCommInput" style="width:625px" rows="3"></textarea></p>
									<p><input id="btnCommInput" class="button" type="button" value="Save" onclick="btnsave()"/><span  id="StxtCommInput"  style="color: Red;display:none" class="validMsg"><br /><%=GetText("输入字符太多")%></span></p>
									<%}else{ %><p>The action is not valid now.</p><p><a href="<%=WWWHost%>/session/session.htm?sid=<%=sid %>">Return the session and check the action required</a></p><%} %>
								</div>
							</div>
					</div>
					<div class="clear"></div>
				</div>
			</div>
			<div id="body_right"></div>
			<div class="clear"></div>
		</div>
		<div id="body_900F"></div>
	</div>
</div>
<%if(isshow){ %>
<script>
var lid=<%=sm.LID %>;
var tmemberno="<%=sm.TNO %>";
var memberno="<%=Memberno %>";
var Timezone=0;
var tm=<%=Timezone %>;
if(tm!="")
{
   Timezone =0-tm;
}
var sid=<%=sid %>;
var state="<%=sm.State %>";
var SessionType="<%=sm.SessionType %>";
var cid=<%=sm.CID %>;
</script>
<%} %>
